/**
*  \file control_iso_valve.h
*
*  \brief
*
*  \author Michael J. Hohmann  michael.hohmann@linde-mh.de
*
*
*
*
*
*/
#ifndef CONTROL_ISO_VALVE_H_INCLUDED
#define CONTROL_ISO_VALVE_H_INCLUDED

/*================================================[ public includes  ]================================================*/
#include "../cfg/prj.h"
#include "../trilean/trilean.h"
/*================================================[ public defines   ]================================================*/

/*================================================[ public datatypes ]================================================*/

/*================================================[ public variables ]================================================*/

/*================================================[ inline functions ]================================================*/

/*================================================[ public functions ]================================================*/
/**
*  Initialization.
*
*  Initialize the control_iso_valve module.
*
*  \return RC_SUCCESS if successful.
*/
RC control_iso_valve_initialize( void );

/** Control Iso Valve
*
*  \param main_contactor  Valve should be only on if main_contactor is also on.
*  \param driver_present  If driver is present or not or unknown
*  \param supply_voltage Supply voltage of the valve
*
*  \return PWM value for the valve.
*/
U16 control_iso_valve_10ms( BO main_contactor , enum trilean driver_present, F32 supply_voltage );

/*====================================================================================================================*/

#endif

/***********************************************************************************************************************
*                             Copyright 2020 Linde Material Handling. All rights reserved.                             *
***********************************************************************************************************************/
